<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::post('login','login/index');
Route::post('logout','login/logout');

Route::get('menu/getSelectTree','menu/getSelectTree');
Route::resource('menu','menu');

Route::resource('admin','admin');
Route::put('admin/:id/state/:state','admin/state');
Route::resource('role','role');
Route::put('role/:id/state/:state','role/state');
Route::put('role/auth/:role_id','role/auth');

Route::get('config/:item','config/read');
Route::put('config/:item','config/update');